import requests from './request.js';

// 获取轮播图列表
export function getBannerList() {
	return requests({
		url: '/system/banner/getBannerList',
		method: 'get'
	})
}

// 查看轮播图详情
export function getBanner(bid) {
	return requests({
		url: '/system/banner/getBanner/' + bid,
		method: 'get'
	})
}

// 编辑轮播图
export function updateBanner(data) {
	return requests({
		url: '/system/banner/updateBanner',
		method: 'put',
		data: data
	})
}

// 删除轮播图
export function deleteBanner(bid) {
	return requests({
		url: '/system/banner/deleteBanner/' + bid,
		method: 'delete'
	})
}
